﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using W.Warehouse.Domain;

namespace W.Warehouse.Repository.Impl
{
    public class OutStorageProductsRepository : BaseRepositoy<OutStorageProducts>, IOutStorageProductsRepository
    {
        public OutStorageProductsRepository(EFCoreDbContext context) : base(context)
        {
        }
        public async Task<int> AddAsync(OutStorageProducts outStorageProducts)
        {
            return await base.AddAsync(outStorageProducts);
        }

        public async Task<List<OutStorageProducts>> GetAllAsaync()
        {
            return await base.GetAllAsync();
        }
        public async Task<int> AddRangeAsync(List<OutStorageProducts> products)
        {
            return await base.AddRangeAsync(products);
        }
        public async Task<List<OutStorageProducts>> GetAsync(Expression<Func<OutStorageProducts, bool>> expre)
        {
            return await base.GetAsync(expre);
        }

        public async Task<int> Update(OutStorageProducts outStorageProducts)
        {
            return await base.UpdateAsync(outStorageProducts);
        }
    }
}
